package com.bot.devbot.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * 项目推送地址配置,用于精细化的推送
 *
 * @author xialiguo
 * @version 1.0
 * @date 2025/1/23 9:11
 * @since 1.0
 */
@Configuration
@ConfigurationProperties(prefix = "myapp")
@Data
public class HookUrlConfig {
    private List<PrjHookUrl> prjHookUrlMap;

    @Data
    public static class PrjHookUrl {
        /**
         * 项目集合
         */
        private List<String> prjName;

        /**
         * 微信推送地址
         */
        private String wechatUrl;

        /**
         * 飞书推送地址
         */
        private String feiShuUrl;

        /**
         * 用户集合
         */
        private List<String> userIds;

        /**
         * 用户集合
         */
        private List<String> testUserIds;
    }
}

